package cn.com.joycode.admin.entrance.application;

import org.fusesource.jansi.Ansi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

import static org.fusesource.jansi.Ansi.Color.MAGENTA;
import static org.fusesource.jansi.Ansi.ansi;

@SpringBootApplication
@ComponentScan("cn.com.joycode.admin.entrance")
public class NimbleAdminEntrance {

    public static void main(String[] args) {
        String banner = "\n.-. .-..-..-.   .-..----..-.   .----.     .--.  .----..-.   .-..-..-. .-.\n" +
                "|  `| || ||  `.'  || {}  } |   | {_      / {} \\ | {}  \\  `.'  || ||  `| |\n" +
                "| |\\  || || |\\ /| || {}  } `--.| {__    /  /\\  \\|     / |\\ /| || || |\\  |\n" +
                "`-' `-'`-'`-' ` `-'`----'`----'`----'   `-'  `-'`----'`-' ` `-'`-'`-' `-'\n";
        Ansi tips = ansi().fg(MAGENTA).a(banner).reset();
        System.out.println(tips);
        SpringApplication.run(NimbleAdminEntrance.class, args);
    }
}
